package bairui.international.console.web.controller.personnel.employee;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_Admin;


/**
 * @generated
 *
 * C_Admin_Personnel_Employee_Edit
 *
 */
@Controller
public class C_Personnel_Employee_Edit
 extends SC_Personnel_Employee_Edit 
{
	

	
	@Autowired @Lazy private Service_Admin service_Admin;
	
	/**
	 * 编辑
	 */
	@Action(Edit.class)
	@PutMapping(Edit.RequestMappingValue)
	public @FomatOutput @ResponseBody Object edit(
		@Valid Edit.InputModel input, 
		@PathVariable(name=Edit.PathVariableName.EmployeeId) long employeeId
	) throws Exception {
		service_Admin.updateWithNonNullProperties(
				employeeId, 
				input
			);
		//
		return null;
	}
	

}


